//覆盖一些element-ui样式

.el-breadcrumb__inner,
.el-breadcrumb__inner a {
  font-weight: 400 !important;
}

.el-upload {
  input[type="file"] {
    display: none !important;
  }
}

.el-upload__input {
  display: none;
}

.cell {
  .el-tag {
    margin-right: 0px;
  }
}

.small-padding {
  .cell {
    padding-left: 5px;
    padding-right: 5px;
  }
}

.fixed-width {
  .el-button--mini {
    padding: 7px 10px;
    width: 60px;
  }
}

.status-col {
  .cell {
    padding: 0 10px;
    text-align: center;

    .el-tag {
      margin-right: 0px;
    }
  }
}

//暂时性解决dialog 问题 https://github.com/ElemeFE/element/issues/2461
.el-dialog {
  transform: none;
  left: 0;
  position: relative;
  margin: 0 auto;
}

//文章页textarea修改样式
.article-textarea {
  textarea {
    padding-right: 40px;
    resize: none;
    border: none;
    border-radius: 0px;
    border-bottom: 1px solid #bfcbd9;
  }
}

//element ui upload
.upload-container {
  .el-upload {
    width: 100%;

    .el-upload-dragger {
      width: 100%;
      height: 200px;
    }
  }
}

//dropdown
.el-dropdown-menu {
  a {
    display: block
  }
}

.el-table--group, .el-table--border {
  border: none !important;
}

.el-table--border th:last-child, .el-table--border td:last-child {
  border-right: none
}
.el-pagination {
  text-align: right
}

//重置size为mini的按钮的下外边距
.el-button--mini {
  margin-bottom: 20px
}
.el-date-table {
  font-size: 14px;
}

//重置size为mini的表单元素下边距为0  需要在form元素添加class mb0
.mb0 .el-form-item--mini {
  margin-bottom: 0;
}

.el-table--group::after, .el-table--border::after, .el-table::before {
  background: none;
}
//重置所有表单元素下边距为0 需要在form元素添加class mb0
.mb0 .el-form-item {
  margin-bottom: 0;
}
//重置所有表单元素下边距为5 需要在form元素添加class mb5
.mb5 .el-form-item {
  margin-bottom: 5px;
}
// 重置el-popover 的高度 超出为滚动
// .el-popover {
//   max-height: calc(100% - 200px);
//   overflow-y: auto;
// }
//重置弹出的dialog的footer按钮居中
.el-dialog__footer {
  text-align: center !important;
}
//重置分页上边距为20px
.el-pagination {
  margin-top: 10px !important;
}
//重置dialog 标题字体及样式
.el-dialog__title {
  color: #37A5A7;
  padding-left: 12px;
  font-size: 16px;
  font-weight: bold;
}

.el-message-box__title {
  @extend .el-dialog__title
}

.el-dialog__header {
  position: relative;

  &::before {
    content: '';
    display: inline-block;
    position: absolute;
    top: 20px;
    border-radius: 2px;
    height: 20px;
    width: 5px;
    background: #37A5A7;
  }

}

.el-message-box__header {
  @extend .el-dialog__header;

  &::before {
    top: 13px;
  }
}

.el-dialog__body {
  padding: 20px;
}

.el-message-box__btns {
  text-align: center;
  height: 40px;
  position: relative;
  button {
    //取消
    &:nth-child(1) {
      position: absolute;
      left: 220px;
    }
    //确定
    &:nth-child(2) {
      position: absolute;
      left: 145px;
    }
  }
}
.el-form--label-top .el-form-item__label{padding:0px !important}
.el-table th > .cell {text-align: center}

//el-dialog添加.el-dialog-div class后 重置高度 添加el-scrollbar的美化滚动条
.el-dialog-div {
  height: calc(100vh - 300px);
  overflow: hidden;
}
.el-drawer__box {
  @extend .el-dialog-div;
  height: calc(100vh - 100px);
  .el-scrollbar {
    height: 100%;
  }
}

.el-dialog-div .el-scrollbar {
  height: 100%;
}

.el-dialog-div .scrollbar-wrapper {
  overflow-x: hidden !important;
}
.scroll {
  height: 105%;
  overflow-x: hidden !important;
}
.el-date-editor .el-range-separator{
  width: 30px!important;
}

//大中小字体 重置表格  medium=大  small=中 mini=小
//基础字体大小
$baseFontSize:14px;
//大 table字体
.el-table--medium{
  font-size: $baseFontSize+2;
}
//中 table字体
.el-table--small{
  font-size: $baseFontSize;
}
//大 表头padding
.el-table--medium th{
  padding: 12px 0;
}
//大 表体padding
.el-table--medium td{
  padding: 3px 0;
}
//中 表体padding
.el-table--small td{
  padding: 3px 0;
}
//小 表体padding
.el-table--mini td{
  padding: 3px 0;
}
//小  class mb0  按钮小边距重置为0
.mb0 .el-button--mini{
  margin-bottom: 0;
}
// 大 表单元素下边距重置为0
.mb0 .el-form-item--medium{
  margin-bottom: 0;
}
//大  头部按钮 上边距重置为-3px
.mt-3 .el-button--medium{
  margin-top: -3px;
}

//重置行内可编辑的table的样式
//表格内的input框背景和边框都为透明
.tb-edit .el-input__inner{
  border: 1px solid transparent;
  background: transparent;
}
.tb-edit .el-form-item[align="right"] .el-input__inner{
  text-align: right;
}
//表格内input验证成功边框改为透明
.tb-edit .el-form-item.is-success .el-input__inner, .tb-edit .el-form-item.is-success .el-input__inner:focus{
  border: 1px solid transparent!important;
}
.tb-edit .el-input.is-disabled .el-input__inner{
  background-color:transparent;
  border-color:transparent;
}
.tb-edit .el-select .el-input.is-disabled .el-input__inner:hover {
    border-color: transparent;
}
.tb-edit .el-select:hover .el-input__inner {
    border-color: transparent;
}
.tb-edit .el-form-item{
  margin-bottom: 0
}
.tb-edit .el-form-item .el-form-item__content{
  margin-left: 0!important;
}
.tb-edit  td{
  padding: 0!important
}
//重置合计居右
.el-table__footer .cell{
  text-align: right
}

//左侧菜单字体大小 根据大中小改变   大 medium  中 small 小 mini
//大
.medium .el-submenu__title{
  font-size: 18px;
}
//中
.small .el-submenu__title{
  font-size: 16px;
}
//小
.mini .el-submenu__title{
  font-size: 14px;
}
//去除table fixed right  下边的短横线bug
.el-table__fixed::before, .el-table__fixed-right::before{
  background-color:transparent
}

//去除input type=number 的上下箭头
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
}
input[type="number"]{
    -moz-appearance: textfield;
}
//重置table的背景色
.el-table__body-wrapper{
  background: #f5f5f9;
}

//重置 单子页面 细表table下的 附件横栏的样式
.myrow .el-upload{
  display: block
}
.myrow .el-upload-list__item:first-child{
  margin-top: 0;
}
.myrow .el-upload-list{
  height: 60px;
  overflow: auto;
}
.myrow{
  height: 100px;
  overflow: hidden;
  margin-top: 10px;
}
.myrow .el-form-item--small.el-form-item{
  margin-bottom: 0;
}
.myrow .el-form-item--mini.el-form-item{
  margin-bottom: 0;
}
.myrow .el-form-item--medium.el-form-item{
  margin-bottom: 0;
}
.myrow .dynamic{
  height: 100px;
  overflow: auto;
}

// 重置表单为横线
.el-input__inner{
  border:none;
  border-bottom: 1px solid #DCDFE6;
  border-radius:0;
}
.hrizon .el-form-item--small{
  width: 100%;
}
.hrizon .el-form-item__content{
  width: calc(100% - 80px);
}

.department-match .el-transfer-panel .el-transfer-panel__header .el-checkbox .el-checkbox__label{
  font-size: 14px;
  color: #37A5A7;
}
.department-match .el-input__inner{
  border: 1px solid #DCDFE6;
}

.department-match  .el-transfer-panel{
  width: 300px;
}
.department-match .el-transfer__button{
  display: block;
}
.department-match .el-button+.el-button{
  margin-left: 0;
}

.el-drawer__body {
  padding: 20px;
}

.el-select-dropdown.is-multiple .el-select-dropdown__item.selected::after {
  position: absolute;
  right: 10px !important;
  font-family: 'element-icons';
  content: "\E6DA";
  font-size: 12px;
  font-weight: bold;
  font-smoothing: antialiased;
}

.filter .el-form-item--small.el-form-item{
  margin-bottom: 10px;
}
 // 修改单行删除图标的大小
 .tb-edit .el-icon-remove-outline{
  font-size: 18px;
  vertical-align: -2px;
}

// 重置禁用的字体颜色
.el-input.is-disabled .el-input__inner{
  color:#999;
}